package com.guigu.www.service.Impl;

import com.guigu.www.dao.JybjMapper;
import com.guigu.www.pojo.Jybj;
import com.guigu.www.service.JybjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JybjServiceImpl implements JybjService {
    @Autowired
    private JybjMapper jybjMapper;
    @Override
    public List<Jybj> queryAll() {
        return jybjMapper.queryAll();
    }

    @Override
    public Jybj querybyjybjid(int id) {
        return jybjMapper.selectByPrimaryKey(id);
    }

    @Override
    public int xg(Jybj jybj) {
        return jybjMapper.updateByPrimaryKey(jybj);
    }

    @Override
    public int tj(Jybj jybj) {
        return jybjMapper.insert(jybj);
    }
}
